<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<head>
<title>课程管理</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link href="css/templatemo_style.css" rel="stylesheet" type="text/css">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" />
<link href="css/memenu.css" rel="stylesheet" type="text/css" media="all" />
<!--<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">-->
<script type="text/javascript" src="js/memenu.js"></script>
<script>
	$(document).ready(function() {
		$(".memenu").memenu();
	});
</script>
<script type="application/x-javascript">
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 
</script>
<style type="text/css">
body {
	background-image: url(image/ba2.jpg);
}

h1 {
	color: #163758;
}

#pannel-bodytopr {
	float: right;
	margin: 5px;
}

.container {
	position: absolute;
}

.addFeedbackH {
	height: 500px;
}

.submit-button {
	float: right;
}

.modal-btn {
	float: right;
}

.divace {
	margin-top: 10px;
}

.CHight {
	height: 500px;
}

.feedbackH {
	height: 840px;
}

.area {
	
}
</style>
<script>
	$(function() {
		$("[data-toggle='tooltip']").tooltip();
	});
	//iframe高度自适应
	function SetWinHeight(obj) {
		var win = obj;
		if (document.getElementById) {
			if (win && !window.opera) {
				if (win.contentDocument
						&& win.contentDocument.body.offsetHeight)
					win.height = win.contentDocument.body.offsetHeight;
				else if (win.Document && win.Document.body.scrollHeight)
					win.height = win.Document.body.scrollHeight;
			}
		}
	}
</script>

</head>
<body>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
	<div>
		<div class="top-header">
			<div class="topcolor">
				<div class="top-header-middle">

					<a href="index.html"><img src="image/logo-1.png" alt=""
						class="image-header" /></a>
				</div>
			</div>
		</div>
		<div class="header-bottom">
			<div class="top-nav">
				<ul class="memenu skyblue">
					<li><a href="index.jsp">首页</a></li>
					<li><a href="feedAction!getAllByPage.action?num=1">课程反馈</a></li>
					<li><a href="courseAction!getAllByPage.action?num=1">课程管理</a></li>
					<li><a href="noticeAction!getAll.action?type=stu">查看公告</a></li>
					<li><a href="mycourse.jsp">我的信息</a></li>
					<li><a href="load.jsp">退出</a></li>
				</ul>

			</div>
			<div class="clearfix"></div>
		</div>
		<div class="course-manage  templatemo-container">
			<div class="table-responsive">
				<a href="scheduleAction!getAll.action?type=stu"><button
						class="btn btn-primary modal-btn">添加课程</button></a>
				<div>
					<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
					<table class="table table-hover">
						<thead>
							<tr>
								<th>学年</th>
								<th>学期</th>
								<th>课程名称</th>
								<th>任课教师</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${lessons }" var="e">
								<tr>
									<c:set var="num" value="#"></c:set>
									<c:set var="number" value="${num }${e.fClassNumber }"></c:set>
									<td>${e.fSchoolYear }</td>
									<td>${e.fSchoolTerm }</td>
									<td>${e.fClassName }</td>
									<td>${e.fTeacher }</td>
									<td><a
										href="courseAction!delete.action?fClassNumber=${e.fClassNumber }"
										class="seebox">删除</a>|
										<a href="#" data-toggle="modal" data-target="${number }">反馈</a>
							</c:forEach>
							<c:forEach items="${lessons }" var="elem">
								
								<div id="pannel-bodytopr ">
									<!--添加模态框开始-->
									<div class="modal fade" id="${elem.fClassNumber }"
										tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
										aria-hidden="true">
										<div class="modal-dialog">
											<div class="modal-content">
												<div class="modal-header">
													<button type="button" class="close" data-dismiss="modal"
														aria-hidden="true">&times;</button>
													<h4 class="modal-title" id="myModalLabel">添加反馈</h4>
												</div>
												<div class="modal-body addFeedbackH">
													<div class="col-md-11 formadd">
														<form
															class="form-horizontal templatemo-container templatemo-contact-form-2 "
															role="form" action="feedAction!add.action" method="post">
															<div class="row">
																<div class="col-md-12">
																	<h5>课程信息</h5>
																	<div class="form-group">
																		<div class="col-sm-12">
																			<input type="text" class="form-control"
																				name="classNum" value="${elem.fClassNumber }">

																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<input type="text" class="form-control"
																					name="lesson" value="${elem.fClassName }">
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<input type="text" class="form-control"
																					name="teacher" value="${elem.fTeacher }">
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<input type="text" class="form-control"
																				name="weekTime" placeholder="请输入周次">
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-sm-12">
																			<div class="templatemo-input-icon-container">
																				<input type="text" class="form-control" name="time"
																					placeholder="请输入上课时间">
																			</div>
																		</div>
																	</div>
																	<h5>问题反馈</h5>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<textarea class="form-control" name="schedule"
																					placeholder="教师有无迟到、早退、拖堂、课间不休息等现象"></textarea>
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<textarea rows="3" class="form-control area"
																					name="classSitutation" placeholder="教学效果情况"></textarea>
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<textarea class="form-control " name="classEfect"
																					placeholder="学生听课状态"></textarea>
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<textarea class="form-control" name="afterClassSitu"
																					placeholder="课后与学生的交流与指导、作业布置、作业批改、检查情况"></textarea>
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<textarea class="form-control" name="advice"
																					placeholder="感觉教师上课出彩或需要改进的地方有哪些"></textarea>
																			</div>
																		</div>
																	</div>
																	<div class="form-group">
																		<div class="col-md-12">
																			<div class="templatemo-input-icon-container">
																				<input type="text" class="form-control" name="memo"
																					placeholder="备注">
																			</div>
																		</div>
																	</div>
																</div>
															</div>
													</div>
												</div>
												<div class="modal-footer">
													<div class="form-group">
														<div class="col-md-12">
															<input type="submit" value="提交"
																class="btn btn-success pull-right">
														</div>
													</div>
													</form>
												</div>
											</div>
											<!-- /.modal-content -->
										</div>
										<!-- /.modal -->
									</div>
									<!--添加模态框结束-->
								</div>
								</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>

			</div>
		</div>
		<!--表格结束-->

		<!-- 查看模态框（Modal） -->
		<div class="modal fade" id="myModalsee1" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;0</button>
						<h4 class="modal-title" id="myModalLabel">查看</h4>
					</div>
					<div class="modal-body">在这里添加一些文本</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary">评论</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal -->
		</div>
		<!--查看模态框结束-->

		<!-- 修改模态框（Modal） -->
		<div class="modal fade" id="myModaltalk1" tabindex="-1" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="myModalLabel">修改</h4>
					</div>
					<div class="modal-body">在这里添加修改</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭
						</button>
						<button type="button" class="btn btn-primary">确定</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal -->
		</div>
		
		<ul class="pagination" style="margin-left: 50%;">
	   <c:if test="${pageNow-1>0 }">
			<li><a href="courseAction!getAllByPage.action?num=${pageNow-1 }">&laquo;</a></li>
		</c:if>
	   <c:forEach var="p"  step="1" begin="1" end="${pageCount }">
				<li><a href="courseAction!getAllByPage.action?num=${p }">${p }</a></li>
		</c:forEach>
	    <c:if test="${pageNow+1<=pageCount }">
			<li><a href="courseAction!getAllByPage.action?num=${pageNow+1 }">&raquo;</a></li>
		</c:if>
	</ul>

	</div>
	<div class="bottom-below">
		<p class="friend-link">
			友情链接： <a href="http://software.henu.edu.cn/">河南大学软件学院</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://www.henu.edu.cn/">河南大学官网</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://jwc.henu.edu.cn/default.asp">河南大学教务处</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://xk1.henu.edu.cn/cas/login.action">河南大学选课系统</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="http://news.henu.edu.cn/">河南大学新闻网</a>&nbsp;&nbsp;&nbsp;&nbsp;
		</p>
		<p class="end-p">
			<a href="http://www.henu.edu.cn/">河南大学</a>软件学院蒲公英工作室&nbsp;&nbsp;Copyright
			&copy;&nbsp;&nbsp;2016www.henu.edu.cn&nbsp;&nbsp;&nbsp;&nbsp;地址：河南省开封市河南大学&nbsp;&nbsp;&nbsp;&nbsp;<img
				src="image/gif011.gif" class="img4"> 0371-22222222
		</p>
	</div>

</body>
</html>